<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewBookTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewBookLabel_id}"/>
                    <h:outputText value="#{bookController.selected.id}" title="#{bundle.ViewBookTitle_id}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_isbn}"/>
                    <h:outputText value="#{bookController.selected.isbn}" title="#{bundle.ViewBookTitle_isbn}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_title}"/>
                    <h:outputText value="#{bookController.selected.title}" title="#{bundle.ViewBookTitle_title}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_summary}"/>
                    <h:outputText value="#{bookController.selected.summary}" title="#{bundle.ViewBookTitle_summary}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_publicationDate}"/>
                    <h:outputText value="#{bookController.selected.publicationDate}" title="#{bundle.ViewBookTitle_publicationDate}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_bitmapURL}"/>
                    <h:outputText value="#{bookController.selected.bitmapURL}" title="#{bundle.ViewBookTitle_bitmapURL}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_price}"/>
                    <h:outputText value="#{bookController.selected.price}" title="#{bundle.ViewBookTitle_price}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_stock}"/>
                    <h:outputText value="#{bookController.selected.stock}" title="#{bundle.ViewBookTitle_stock}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_createdDate}"/>
                    <h:outputText value="#{bookController.selected.createdDate}" title="#{bundle.ViewBookTitle_createdDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewBookLabel_updatedDate}"/>
                    <h:outputText value="#{bookController.selected.updatedDate}" title="#{bundle.ViewBookTitle_updatedDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewBookLabel_deletedDate}"/>
                    <h:outputText value="#{bookController.selected.deletedDate}" title="#{bundle.ViewBookTitle_deletedDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewBookLabel_seriesid}"/>
                    <h:outputText value="#{bookController.selected.seriesid}" title="#{bundle.ViewBookTitle_seriesid}"/>
                    <h:outputText value="#{bundle.ViewBookLabel_categoryid}"/>
                    <h:outputText value="#{bookController.selected.categoryid}" title="#{bundle.ViewBookTitle_categoryid}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{bookController.destroyAndView}" value="#{bundle.ViewBookDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewBookEditLink}"/>
                <br />
                <h:commandLink action="#{bookController.prepareCreate}" value="#{bundle.ViewBookCreateLink}" />
                <br />
                <h:commandLink action="#{bookController.prepareList}" value="#{bundle.ViewBookShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/admin/admin.xhtml" value="#{bundle.ViewBookIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
